<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo lang('ute_sysmsg')?></title>
<link href="<?php echo CSS_PATH?>admin.css" rel="stylesheet" type="text/css" />
<style>
<!--
body {background: none}
h1 {font-size: 12px; color: #444; line-height: 55px; background: url(<?php echo IMG_PATH?>welcome_h1.gif); padding-left: 2%}
dl {line-height: 40px; background: url(<?php echo IMG_PATH?>welcome.gif) no-repeat left 10px; padding-left: 40px; margin: 35px 0 45px 15%}
dt {color: #009de6}
dd {color: #444;}
a {color: #06c}
a:hover {color: #09f}
#spanSeconds { color: #FF0000;}
p {color: #999; border-top: 1px solid #cbe4f5; text-align: center; padding-top: 20px;}
-->
</style>
</head>

<body>
<h1><?php L('ute_sysmsg')?></h1>
<dl>
    <dt><?php echo $msg?></dt>
    <?php if($redirect):?>
    <dd id="redirectionMsg"><?php echo $auto_redirect?></dd>
    <?php endif;?>
    <?php foreach ($links as $item):?>
    <dd><a href="<?php echo $item['href']?>" class="forward"><?php echo $item['text']?></a></dd>
    <?php endforeach;?>
</dl>
<?php if($redirect):?>
<script language="JavaScript">
<!--
var seconds = 5;
var defaultUrl = "<?php echo $default_url['href']?>";

onload = function()
{
  if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
  {
    document.getElementById('redirectionMsg').innerHTML = '';
    return;
  }

  window.setInterval(redirection, 1000);
}
function redirection()
{
  if (seconds <= 0)
  {
    window.clearInterval();
    return;
  }

  seconds --;
  document.getElementById('spanSeconds').innerHTML = seconds;

  if (seconds == 0)
  {
    window.clearInterval();
    location.href = defaultUrl;
  }
}
//-->
</script>
<?php endif;?>
<p>Copyright 2011-2012 SHARE Inc.,All rights reserved.</p>
</body>
</html>
